package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/8/16 11:27
 * @desrcption: 开启流程对象
 */
@Getter
@Setter
@ToString
public class ProcessOpenDTO extends BaseDTO {

    private static final long serialVersionUID = 2191119070320345493L;

    /**
     * 应用id PaaS用
     */
    private Long appId;
    /**
     * 表单id PaaS用
     */
    private Long formId;
    /**
     * 菜单id PaaS用
     */
    private Long menuId;

    /**
     * 是否是saas 1：saas  2：paas
     */
    @DecimalMin(value = "1", message = "{dto.msg.processOpen.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.processOpen.saasMark.DecimalMax}")
    @NotNull(message = "{dto.msg.processOpen.saasMark.NotNull}")
    protected Integer saasMark;

    /**
     * saas业务类型
     */
    protected Integer businessType;

    /**
     * 模板类型 1 普通模板 2 新模板
     */
    @DecimalMin(value = "1", message = "{dto.msg.processOpen.type.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.processOpen.type.DecimalMax}")
    @NotNull(message = "{dto.msg.processOpen.type.NotNull}")
    protected Integer type;

    protected Integer del;

    public ProcessOpenDTO() {
        businessType = 0;
        del = 0;
    }
}
